Skip to content

Conversation

dummdidumm
Copy link
Member

  • make paragraph breaks less spacey
  • move ul closer to the preceeding paragraph which gives more visual clarity of where it belongs to
  • give code blocks a bit more space at the top/bottom on larger screens
  • give blockquotes more space at the top/bottom on larger screens

Combined, these changes give more visual clarity of which things belong together, which stand on its own, etc

- make paragraph breaks less spacey
- move `ul` closer to the preceeding paragraph which gives more visual clarity of where it belongs to
- give code blocks a bit more space at the top/bottom on larger screens
- give blockquotes more space at the top/bottom on larger screens

Combined, these changes give more visual clarity of which things belong together, which stand on its own, etc
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 9:05pm

content: '';
position: absolute;
top: 1.43rem;
top: 1.1rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks bad on my screen. we will need to find some approach that works across different configurations

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed something, let me know if that works for you

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw you pushed something, how does that differ to the line-height dependent solution for you? can't we tweak the calc a bit?
FWIW I'm fine with your solution, it's already much better than what we currently have

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't work across the board for me, and I figured if everything is the same units we don't need a calc. Obviously em and lh are fungible, but the way I'm thinking of it is this: lh for spacing in typography, em for things that are tied to the size of the type itself (like icons), rem for layout. We're not being totally disciplined but I think that's a sensible way to think about things

@Rich-Harris Rich-Harris merged commit b00f797 into main Oct 29, 2024
5 checks passed
@Rich-Harris Rich-Harris deleted the spacing-tweaks branch October 29, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants